package com.rayo.accesscontrollercopy.model.service;

import java.io.Serializable;

/**
 * Created by yanghaojie on 2017/3/19.
 */

public class NetworkData<T> implements Serializable {
    private static final long serialVersionUID = 1L;
    private byte cmd;

    private T data;

    public NetworkData() {
        this.cmd = 0;
        this.data = null;
    }

    public NetworkData(T data) {
        this.cmd = 0;
        this.data = data;
    }

    public NetworkData(byte cmd, T data) {
        this.cmd = cmd;
        this.data = data;
    }

    public byte getCmd() {
        return cmd;
    }

    public void setCmd(byte cmd) {
        this.cmd = cmd;
    }

    public T getData() {
        return data;
    }

    public void setData(T data) {
        this.data = data;
    }
}
